﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Mvc4WebApiKoTb.Models.HomeModels.Helper;

namespace Mvc4WebApiKoTb.Models.HomeModels
{
    public class EditListItemsModel
    {
        public List<Person> PersonenListe { get; set; }

        public EditListItemsModel()
        {
            PersonenListe = new List<Person>();
        }

        public void LoadListItems()
        {
            PersonenListe.Add(new Person() { Loginname = "SquadWuschel@gmx.de", Vorname = "Squad", Name = "Wuschel", Age = 32, Birthdate = DateTime.Now.AddYears(-32), IsMale = true});
            PersonenListe.Add(new Person() { Loginname = "Jackson@gmx.de", Vorname = "Jack", Name = "Son", Age = 24, Birthdate = DateTime.Now.AddYears(-24), IsMale = true});
            PersonenListe.Add(new Person() { Loginname = "Fridi@gmx.de", Vorname = "Fri", Name = "di", Age = 52, Birthdate = DateTime.Now.AddYears(-52), IsMale = false});
        }

    }
}
